<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Administrator Control Panel</title>
<link href="<?php echo CSS_IMAGES_JS_BASE_URL;?>css/style.css" rel="stylesheet" type="text/css" />
<link href="<?php echo CSS_IMAGES_JS_BASE_URL;?>css/dropdown.css" media="screen" rel="stylesheet" type="text/css" />
<link media="screen" type="text/css" href="<?php echo CSS_IMAGES_JS_BASE_URL;?>mootools/formcheck.css" rel="stylesheet" />
<link media="screen" type="text/css" href="<?php echo CSS_IMAGES_JS_BASE_URL;?>css/ajaxtabs.css" rel="stylesheet" />
<script src="<?php echo CSS_IMAGES_JS_BASE_URL;?>jquery/jquery-latest.pack.js" type="text/javascript"></script>

<link media="screen" type="text/css" href="<?php echo CSS_IMAGES_JS_BASE_URL;?>jquery/jquery-ui.css" rel="stylesheet" />
<script src="<?php echo CSS_IMAGES_JS_BASE_URL;?>jquery/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script>

<link media="screen" type="text/css" href="<?php echo CSS_IMAGES_JS_BASE_URL;?>jquery/css/validationEngine.jquery.css" rel="stylesheet" />
<script src="<?php echo CSS_IMAGES_JS_BASE_URL;?>jquery/js/jquery.validationEngine-en.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="<?php echo CSS_IMAGES_JS_BASE_URL;?>jquery/js/jquery.validationEngine.js"></script>
</head>

<body>
<?php echo $content_for_layout;?>
<?php if(isset($succmsg) && $succmsg<>'') { ?>
<script>
	jQuery(function() {
		// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
		//jQuery( "#dialog:ui-dialog" ).dialog( "destroy" );
	
		jQuery("#dialog-modal" ).dialog({
			height: 200,
			width: 550,
			show: "puff",
			hide: "explode",			
			buttons: {
				Ok: function() {
					jQuery( this ).dialog( "close" );
				}
			},
			modal: true
		});
	});
	</script>

<div id="dialog-modal" title="Success Message" style="display:none;">
	<p><!--<img src="<?php echo CSS_IMAGES_JS_BASE_URL;?>images/dialog-warning.png" style="float:left; margin:5px;" />--><?php echo $succmsg;?></p>
</div>

<?php }if(isset($errmsg) && $errmsg<>'') { ?>
<script>
	jQuery(function() {
		// a workaround for a flaw in the demo system (http://dev.jqueryui.com/ticket/4375), ignore!
		//jQuery( "#dialog:ui-dialog" ).dialog( "destroy" );
	
		jQuery( "#dialog-modal" ).dialog({
			height: 200,
			width: 550,
			show: "puff",
			hide: "explode",			
			buttons: {
				Ok: function() {
					jQuery( this ).dialog( "close" );
				}
			},
			modal: true
		});
	});
	</script>

<div id="dialog-modal" title="Error Message" style="display:none;">
	<p><img src="<?php echo CSS_IMAGES_JS_BASE_URL;?>images/dialog-error.png" style="float:left; margin:5px;" /><?php echo $errmsg;?></p>
</div>

<?php }?>
</body>
</html>